import 'package:kkhousekeep/generated/json/base/json_convert_content.dart';
import 'package:kkhousekeep/models/home_exist_new_mag_entity.dart';

HomeExistNewMagEntity $HomeExistNewMagEntityFromJson(Map<String, dynamic> json) {
	final HomeExistNewMagEntity homeExistNewMagEntity = HomeExistNewMagEntity();
	final int? code = jsonConvert.convert<int>(json['code']);
	if (code != null) {
		homeExistNewMagEntity.code = code;
	}
	final HomeExistNewMagObj? obj = jsonConvert.convert<HomeExistNewMagObj>(json['obj']);
	if (obj != null) {
		homeExistNewMagEntity.obj = obj;
	}
	final String? msg = jsonConvert.convert<String>(json['msg']);
	if (msg != null) {
		homeExistNewMagEntity.msg = msg;
	}
	return homeExistNewMagEntity;
}

Map<String, dynamic> $HomeExistNewMagEntityToJson(HomeExistNewMagEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['code'] = entity.code;
	data['obj'] = entity.obj.toJson();
	data['msg'] = entity.msg;
	return data;
}

HomeExistNewMagObj $HomeExistNewMagObjFromJson(Map<String, dynamic> json) {
	final HomeExistNewMagObj homeExistNewMagObj = HomeExistNewMagObj();
	final bool? noticeExist = jsonConvert.convert<bool>(json['noticeExist']);
	if (noticeExist != null) {
		homeExistNewMagObj.noticeExist = noticeExist;
	}
	final bool? workOrderExist = jsonConvert.convert<bool>(json['workOrderExist']);
	if (workOrderExist != null) {
		homeExistNewMagObj.workOrderExist = workOrderExist;
	}
	final bool? billExist = jsonConvert.convert<bool>(json['billExist']);
	if (billExist != null) {
		homeExistNewMagObj.billExist = billExist;
	}
	return homeExistNewMagObj;
}

Map<String, dynamic> $HomeExistNewMagObjToJson(HomeExistNewMagObj entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['noticeExist'] = entity.noticeExist;
	data['workOrderExist'] = entity.workOrderExist;
	data['billExist'] = entity.billExist;
	return data;
}